package com.zqweb.gulimall.authserver.feign;

import com.zqweb.common.utils.R;
import com.zqweb.common.vo.GiteeSocialUserInfo;
import com.zqweb.common.vo.GiteeUserInfo;
import com.zqweb.gulimall.authserver.vo.UserLoginVo;
import com.zqweb.gulimall.authserver.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("guli-mall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    R registerUser(@RequestBody UserRegistVo userRegistVo);
    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo userLoginVo);
    @PostMapping("/member/member/login/thirdparty")
    R loginByThirdparty(@RequestBody GiteeSocialUserInfo giteeSocialUserInfo);

}
